package com.st.dao.impl;

import com.st.dao.IUserDao;
import com.st.enity.User;
import com.st.util.DBUtil;

public class UserDaoImpl implements IUserDao {
	private DBUtil dbUtil = new DBUtil();
	@Override
	public User select(User user) {
		String sql = "select * from user where username=? and password=?";
		Object[] params = {user.getUsername(),user.getPassword()};
		return dbUtil.queryOne(sql, params, User.class);
	}
	
}
